package cn.home.DYX.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.home.common.annotation.Excel;
import cn.home.common.core.domain.BaseEntity;

/**
 * 团队管理对象 home_team
 * 
 * @author 丁宇翔
 * @date 2025-04-09
 */
public class HomeTeam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 团队id */
    private Long id;

    /** 团队名称 */
    @Excel(name = "团队名称")
    private String name;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 机构id */
    @Excel(name = "机构id")
    private Long institutionid;

    /** 评分 */
    @Excel(name = "评分")
    private Long score;

    /** 评分人数 */
    @Excel(name = "评分人数")
    private Long number;

    /** 分享量 */
    @Excel(name = "分享量")
    private Long share;

    /** 签约人数 */
    @Excel(name = "签约人数")
    private Long agency;

    /** 二维码图片 */
    @Excel(name = "二维码图片")
    private String image;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String createname;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    /** 队长id */
    @Excel(name = "队长id")
    private Long leader;
    /*医生团队信息*/
    private List<HomeDoctor> homeDoctorList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public List<HomeDoctor> getHomeDoctorList() {
        return homeDoctorList;
    }

    public void setHomeDoctorList(List<HomeDoctor> homeDoctorList) {
        this.homeDoctorList = homeDoctorList;
    }

    public String getName()
    {
        return name;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setInstitutionid(Long institutionid) 
    {
        this.institutionid = institutionid;
    }

    public Long getInstitutionid() 
    {
        return institutionid;
    }

    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }

    public void setShare(Long share) 
    {
        this.share = share;
    }

    public Long getShare() 
    {
        return share;
    }

    public void setAgency(Long agency) 
    {
        this.agency = agency;
    }

    public Long getAgency() 
    {
        return agency;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setCreatename(String createname) 
    {
        this.createname = createname;
    }

    public String getCreatename() 
    {
        return createname;
    }

    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    public void setLeader(Long leader) 
    {
        this.leader = leader;
    }

    public Long getLeader() 
    {
        return leader;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("avatar", getAvatar())
            .append("institutionid", getInstitutionid())
            .append("score", getScore())
            .append("number", getNumber())
            .append("share", getShare())
            .append("agency", getAgency())
            .append("image", getImage())
            .append("time", getTime())
            .append("createname", getCreatename())
            .append("state", getState())
            .append("leader", getLeader())
            .toString();
    }
}
